#ifndef ASSERT_H
#define ASSERT_H
#include "printf.h"

#define assert(x) \
  do { \
    if (!(x)) { \
      cprintf("Assertion failed: %s, file %s, line %d\n", #x, __FILE__, __LINE__); \
      while (1); \
    } \
  } while (0)

#endif
